import {GET_GOOD_DETAIL} from '../actionType'
const initialState = {
  goodDetail:{}
}

export default (state = initialState, { type, payload }) => {
  switch (type) {

  case GET_GOOD_DETAIL:
    return { ...state, goodDetail:payload.message}

  default:
    return state
  }
}
